<template>
	<uni-forms class="login-form" ref="form">
		<uni-forms-item name="name">
			<input type="text" placeholder="请输入账号" class="uni-input-input" placeholder-style="color: #818181" />
		</uni-forms-item>
		<uni-forms-item name="name">
			<input type="text" placeholder="请输入密码" class="uni-input-input" placeholder-style="color: #818181" />
		</uni-forms-item>
		<button class="submit-button" @click="func">登录</button>
	</uni-forms>
</template>

<script setup>
	function func() {
		uni.switchTab({
			url: '/pages/task/index'
		})
	}
</script>

<style lang="scss" scoped>
	@import './styles.scss';
</style>